#include "ScopedLock.h"
#include "Lock.h"

ScopedLock::ScopedLock(Lock *lock) {
	this->lock = lock;
	this->lock->acquire();
}

ScopedLock::~ScopedLock() {
	this->lock->release();
}
